package com.koron.order.patrol.bean.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.koron.order.defect.excel.PatrolVOContractConvertor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("巡视工单-巡视点导出Vo")
public class PatrolExportVo {

    @ApiModelProperty("序号")
    @ExcelProperty(value = "序号")
    private Integer id;

    @ApiModelProperty("工单编号")
    @ExcelProperty(value = "工单编号")
    private String code;

    @ApiModelProperty("标题")
    @ExcelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "巡视点名称")
    @ExcelProperty(value = "巡视点名称")
    private String name;

    @ApiModelProperty(value = "巡视状态")
    @ExcelProperty(value = "巡视状态",converter = PatrolVOContractConvertor.class)
    private String status;

    @ApiModelProperty(value = "签到状态")
    @ExcelProperty(value = "签到状态",converter = PatrolVOContractConvertor.class)
    private String arriveStatus;

    @ApiModelProperty(value = "实际巡视人")
    @ExcelProperty(value = "巡视人")
    private String workerName;

    @ApiModelProperty(value = "巡视时间")
    @ExcelProperty(value = "巡视时间")
    @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(value = 100)
    private String workTime;

    @ApiModelProperty(value = "巡视设备")
    @ExcelProperty(value = "巡视设备")
    private String equipmentName;

    @ApiModelProperty(value = "检查项名称")
    @ExcelProperty(value = "检查项名称")
    private String checkName;

    @ApiModelProperty(value = "检查标准")
    @ExcelProperty(value = "检查标准")
    private String standardName;

    @ApiModelProperty(value = "数据记录项")
    @ExcelProperty(value = "数据记录项")
    private String nameAndUnit;

    @ApiModelProperty(value = "运行状态")
    @ExcelProperty(value = "运行状态",converter = PatrolVOContractConvertor.class)
    private String runStatus;

    @ApiModelProperty(value = "确认结果")
    @ExcelProperty(value = "巡视结果(确认结果)",converter = PatrolVOContractConvertor.class)
    private String result;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "备注")
    private String remarks;
}
